---
title: Face Liveness
description: Amplify UI FaceLivenessDetector provides a UI component for Amazon Rekognition Face Liveness that helps developers verify that only real users, not bad actors using spoofs, can access your services.
supportedFrameworks: react|android|swift
---

import { Fragment } from '@/components/Fragment';
import { getCustomStaticPath } from '@/utils/getCustomStaticPath';

export async function getStaticPaths() {
  return getCustomStaticPath(frontmatter.supportedFrameworks);
}

{/*  `getStaticProps` is required to prevent "Error: getStaticPaths was added without a getStaticProps. Without getStaticProps, getStaticPaths does nothing" */}

export async function getStaticProps() {
  return { props: {} }
}

Amplify UI FaceLivenessDetector is powered by [Amazon Rekognition Face Liveness](https://aws.amazon.com/rekognition/). The following video shows an example of FaceLivenessDetector in action.

<Fragment platforms={['react', 'android', 'swift']}>
  {({ platform }) => import(`./intro.${platform}.mdx`)}
</Fragment>

To learn more about spoof attempts deterred by Face Liveness, please see this [demonstration video on YouTube](https://www.youtube.com/watch?v=JfzwVl1wy0s).

## Quick start

<Fragment>
  {({ platform }) => import(`./prerequisite.${platform}.mdx`)}
</Fragment>

### Step 1. Configure Auth

<Fragment>
  {({ platform }) => import(`./quick-start-pull.${platform}.mdx`)}
</Fragment>

> See [Rekognition documentation](https://docs.aws.amazon.com/rekognition/latest/dg/recommendations-liveness.html) for best practices when using `FaceLivenessDetector`.

<Fragment>
  {({ platform }) => import(`./full-api.${platform}.mdx`)}
</Fragment>